import { IEnum } from './common';

// 上传任务返回状态
interface IUploadBackState {
  Receiving: IEnum;
  Complete: IEnum;
  Fail: IEnum;
}
interface IDisposeBackState {
  Processing: IEnum;
  Complete: IEnum;
  Fail: IEnum;
}

export const UploadBackState: IUploadBackState = {
  Receiving: { code: 'Receiving', value: '接收中' },
  Complete: { code: 'Complete', value: '已完成' },
  Fail: { code: 'Complete', value: '失败' },
};

// 处理任务返回状态
export const DisposeBackState: IDisposeBackState = {
  Processing: { code: 'Processing', value: '处理中' },
  Complete: { code: 'Complete', value: '已完成' },
  Fail: { code: 'Complete', value: '失败' },
};
